package com.example.shoppingmall.service;

import com.example.shoppingmall.pojo.Jurisdiction2;
import com.example.shoppingmall.dao.Jurisdiction2Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Jurisdiction2Service {
    @Autowired
    private Jurisdiction2Mapper jurisdiction2Mapper;

    public List<Jurisdiction2> jurisdiction2List(@Param("moldId")Integer moldId){
        return jurisdiction2Mapper.jurisdiction2List(moldId);
    }

    public int add(Jurisdiction2 jurisdiction2){
        return jurisdiction2Mapper.add(jurisdiction2);
    }

    public int chack(@Param("moldId")int moldId,@Param("propertyId")int propertyId){
        return jurisdiction2Mapper.chack(moldId,propertyId);
    }

    public int delete(@Param("id")int id){
        return jurisdiction2Mapper.delete(id);
    }
}
